<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../lib/jquery-1.7.min.js"></script>
    <script>
        function showValue() {
            var clipText = document.getElementById("copy").value;
            var clipRows = clipText.split("\r\n");
            var clippeds = [];

            for (var i = 0; i < clipRows.length; i++) {
                if (clipRows[i] != "") // get rid of the last ""
                    clippeds[i] = clipRows[i].split(String.fromCharCode(9)); //  "\t" 
            }
            CopyExcel("")
        }

        var CopyExcel = function (tableId) {
            var str = $("#copy").val();
            var rowStrArray = str.split("\n");
            var rows = [];
            for (var i = 0; i < rowStrArray.length; i++) {
                var row = [];
                var tdStrArray = rowStrArray[i].split('\t');
                for (var j = 0; j < tdStrArray.length; j++) {
                    row.push(tdStrArray[j]);
                }
                rows.push(row);
            }

            console.log(rows)
        }
    </script>
</head>

<body>
    <textarea id='copy' style="width: 800px; height: 800px;"></textarea>
    <input type="button" onclick="showValue()" />
</body>

</html>